/**
 * This program does a variety of copying of references and classes.
 * It can also be used to experiment with packages and JUnit.
 * @author Jovan Munroe
 *
 */
public class TicTacToeTester {
	/**
	 * @param args not used
	 */
	public static void main(String[] args)
	{
		makeBoard();

		TicTacToeBoard assertTest = new TicTacToeBoard();
		assertTest.set(1, 1, '?');
	}

	/**
	 * This method creates a tic tac toe board and prints it
	 * 
	 */
	private static void makeBoard() {
		//  Create a board
		TicTacToeBoard board = new TicTacToeBoard(-8);

		// Diag / win
		int col=2;
		for (int row = 0; row < 3; row++)
		{
			board.set(row, col, 'X');
			col--;
		}
		//set vertical win case
		for (int i = 2; i >= 0; i--) {
			board.set(i, 2, 'f');
		}
		//set horizontal win case
		for (int i = 2; i >= 0; i--) {
			board.set(0, i, 'f');
		}
		board.set(6, 6, '0');
		board.set(4,3,'O');
		System.out.println ("The board is:");
		System.out.println (board);
		System.out.println("There is a winner = " +board.hasWin('X'));
		System.out.println("Empty squares = "+board.emptySquares());
	}
}